Skip to content

[FEATURE] Offline Cache for Medicine Verification Records#1603

Closed
himanithakre56 wants to merge 2 commits into
RatLoopz:mainfrom
himanithakre56:fix-offline-scan-history
Closed

[FEATURE] Offline Cache for Medicine Verification Records#1603
himanithakre56 wants to merge 2 commits into
RatLoopz:mainfrom
himanithakre56:fix-offline-scan-history

Conversation

@himanithakre56

@himanithakre56 himanithakre56 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🛑 STOP: Assignment & File Scope Check

  • I am assigned to this issue.
  • I verified that this PR ONLY touches the required files.

Warning

PRs with unrelated files will not be reviewed and may be closed.

📋 PR Summary & Link

  • **Closes [FEATURE] Offline Cache for Medicine Verification Records #1214 **

  • Summary:
    Implement offline scan history caching for rural users with unstable internet. Users can now view previously verified medicines when offline, cached locally using IndexedDB with localStorage fallback.

  • Saves medicine verification results locally when scanned online

  • Displays cached scan history on offline page (/offline)

  • Shows full medicine details in a detail modal (brand name, generic name, batch, expiry, CDSCO status)

  • Auto-redirects to home when connection restored

  • Graceful fallback to localStorage if IndexedDB unavailable

📸 Proof of Work (Screenshots / Logs)

Important

No Pull Request will be merged without proof of testing!

  • Frontend/UI changes: You MUST attach screenshots or screen recordings (GIFs/Videos) showing the UI changes.

Please drag & drop your screenshots/GIFs here:

🏷️ PR Type

  • 🐛 type: bug
  • type: feature
  • 📖 type: docs
  • 🧪 type: testing
  • 🔒 type: security
  • type: performance
  • 🎨 type: design
  • ♻️ type: refactor
  • 🛠️ type: devops
  • type: accessibility

✅ Checklist

  • My PR has a linked issue (Closes #1214 )
  • I have pulled the latest main and resolved any conflicts

@github-project-automation github-project-automation Bot moved this to 📥 Backlog in SahiDawa Workflow Jun 9, 2026
@github-actions github-actions Bot added gssoc:approved Approved for gssoc type:docs Improvements or additions to documentation level:advanced 55 pts level:critical 80 pts type:feature New feature or request type:performance Performance optimization or latency improvements labels Jun 9, 2026
@himanithakre56

Copy link
Copy Markdown
Contributor Author

Hi @dipexplorer,

I have started working on this issue and opened a Draft PR to track progress.

Current status:

  • Reviewed the issue requirements.
  • Investigating the medicine scan verification flow and offline fallback page.
  • Planning the local caching layer for storing verified medicine results.
  • Next step is implementing cache persistence and rendering offline scan history.

Will continue implementation and testing shortly.

@himanithakre56 himanithakre56 changed the title docs: add offline scan history implementation plan [FEATURE] Offline Cache for Medicine Verification Records Jun 9, 2026
@dipexplorer

Copy link
Copy Markdown
Member

once u finish it, mark for review

- Add IndexedDB/localStorage-based local scan history helper
- Display cached medicine verifications on offline page
- Add detail modal to view full cached scan info
- Support VERIFIED/FAKE/SUSPICIOUS status tracking
- Auto-redirect when connection restored
- Fallback to localStorage if IndexedDB unavailable
@github-actions github-actions Bot removed the type:docs Improvements or additions to documentation label Jun 14, 2026
@himanithakre56 himanithakre56 marked this pull request as ready for review June 14, 2026 15:30
@github-actions github-actions Bot added the merge-conflict Need quick fix to get merged or reviewed label Jun 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Merge conflict detected.

@himanithakre56, please resolve the conflicts locally and update your branch within 12 hours. If unresolved, this PR will be closed.

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request closed due to unresolved merge conflicts.

@himanithakre56, conflicts were not resolved within the 12-hour grace period. Please resolve the conflicts locally and submit a new PR.

@github-actions github-actions Bot closed this Jun 15, 2026
@github-project-automation github-project-automation Bot moved this from 📥 Backlog to 🎉 Merged in SahiDawa Workflow Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved Approved for gssoc level:advanced 55 pts level:critical 80 pts merge-conflict Need quick fix to get merged or reviewed type:feature New feature or request type:performance Performance optimization or latency improvements

Projects

Status: 🎉 Merged

Development

Successfully merging this pull request may close these issues.

[FEATURE] Offline Cache for Medicine Verification Records

2 participants